package com.shanzhe.eshop.common.jdk;

import java.util.Iterator;
import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @Author yinwei
 * @create 2021/12/18
 * @Version 1.0
 */
public class ConcurrentLinkedQueueDemo {

    public static void main(String[] args) {
        ConcurrentLinkedQueue<String> concurrentLinkedQueue = new ConcurrentLinkedQueue<String>();
        concurrentLinkedQueue.offer("张三");
        concurrentLinkedQueue.peek();
        concurrentLinkedQueue.poll();
        concurrentLinkedQueue.remove(0);
        concurrentLinkedQueue.size();
        concurrentLinkedQueue.contains("sss");
    }
}
